<template>
  <div>
    <input v-focus type="text">
    <div v-color="redColor">我要红了</div>
    <button @click="redColor = '#0000ff'">修改颜色</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      redColor: '#ff0000'
    }
  }
}
</script>

<style></style>
